package muilty_thread.java_current_practice_and_kernel.cp3;

public class EnumBasedSingletonExample {


    public static void main(String[] args) {
        new Thread(() -> Singleton.INSTANCE.sth()).start();

    }
    public static enum Singleton{
        INSTANCE;

        Singleton() {
        }

        public void sth(){
            System.out.println("sth");

        }
    }
}
